import BuffUtil from '@/BuffUtil';
import UnitSpellEvent from '@/event/UnitSpellEvent';
export default class Item_热血重甲 {
    static id = 'Arxj';
    static 名称: string = '热血重甲';
    static 描述: string = '热血在你身上沸腾，极大增加攻速、移速';
    static 图标: string = 'assets\\item\\INV_Chest_Plate29.blp';
    static buffId: string = 'buff_item_rexuezhongjia';
    static buffType: AppBuffType = {
        id: 'buff_item_rexuezhongjia',
        name: Item_热血重甲.名称,
        ubertip: Item_热血重甲.描述,
        art: Item_热血重甲.图标,
        attribute: {
            attackSpd_p: 2,
            move_speed: 100,
        },
        targetAttach: 'weapon',
        targetArt: 'Abilities\\Spells\\Orc\\Bloodlust\\BloodlustSpecial.mdl',
        dur: 7,
    };
    static 释放(x: number, y: number, 来源?: unit, 目标?: unit, d?: any) {
        BuffUtil.addBuff(来源, Item_热血重甲.buffId, 来源);
    }
    constructor() {
        BuffUtil.registerBuffType(Item_热血重甲.buffType);
        se.onUnitSpellEffect(Item_热血重甲.spellEffect, Item_热血重甲.id);
    }
    static spellEffect(this: void, d: UnitSpellEvent) {
        Item_热血重甲.释放(d.spellTargetX, d.spellTargetY, d.trigUnit, d.spellTargetUnit, d);
    }
}
